#
#
#  elksip - a multi-platform Sip Phone Server
#
#
#  Copyright 2011-2012 Elksip.
#
#

CDEPEND         = makedepend $(CFLAGS)
CFLAGS          = -O2 $(INCLUDEDIRS)
COBJS           = $(CSRCS:%.c=%.o)
CSRCS           =  sip_main.c \
			sip.c \
			sip_udp.c \
			sip_db.c \
			sip_debug.c \
			version.c \
			sqlite_db.c \
			sip_core.c
			

INCLUDEDIRS     = -I../inc
CC = gcc -g -DHAVE_SSL
LDFLAGS         = $(LIBS)
LIBDIRS         = -L../lib 
LIBS            = $(LIBDIRS) -lpthread -lelksip
PROJ            = elksip
 
all: $(PROJ)
 
cdepend: $(CSRCS)
	$(CDEPEND) $(CSRCS)
 
clean:
	rm -f $(COBJS)
	rm -f $(PROJ)
 

$(PROJ): $(COBJS)
	$(CC) -o $@ $(COBJS) $(LDFLAGS)
